home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / pxlgt100.zip / LOGTIME.DOC < prev    next >
Text File  |  1993-12-05  |  4KB  |  135 lines

  1. LogTime   Version 1.00   (c) Copyright 1994, Michael Gallias
  2.  
  3. This program logs the current time into a file.  It stores the last
  4. 170 times in a specified file.  This is useful for your AUTOEXEC.BAT
  5. because you can track when last someone used your computer.  If it
  6. boots up with the time it was last used, you can know if someone
  7. used your computer while you were away.
  8.  
  9. Although it is possible for someone to turn on the computer without
  10. being detected, the average user will have the time logged before he
  11. can do anything about it.  Only if a person knows the program is in
  12. your AUTOEXEC.BAT and they know how to get around it can they boot
  13. your PC without you knowing.
  14.  
  15. It's simple to install, just add the line
  16.  
  17. LOGTIME
  18.  
  19. to your AUTOEXEC.BAT.  It is NOT a TSR - it uses no memory once it
  20. has logged the time.  By default, it uses the file C:\TEMP\BOOTLOG.
  21. It logs the time when run and displays the last time it was called.
  22. The first time you run it, it will ask you whether you want to
  23. create the time file.  Do so and it will create an empty file to
  24. store the times in.
  25.  
  26. Options
  27. -------
  28.  
  29. (For these command line options you may use the - or the /
  30. character.)
  31.  
  32. /f=<file>
  33.  
  34. Allows you to use a different file.  You can thus place LOGTIME
  35. in all your batch files (if you really wanted to) to log the
  36. time each program is used.  Each file uses 2k of disk space.
  37. Note that no space may be before or after the = sign.
  38.  
  39. /L
  40.  
  41. List all recorded times in the file.  The current time is not logged
  42. if you use this option, unless you add /s+ after the /L.
  43.  
  44. /s-
  45.  
  46. Do not log time.
  47.  
  48. /s+
  49.  
  50. Do log the time (default, unless /L is used).
  51.  
  52. /d-
  53.  
  54. Do not display last logged time.
  55.  
  56. /d+
  57.  
  58. Do display last logged time (default, unless /L is used).
  59.  
  60. /1=<message>
  61.  
  62. The message to use before the date and time are displayed.  No spaces
  63. are allowed but the underscore (_) is converted to a space.
  64.  
  65. /2=<message>
  66.  
  67. The message to use after the date and time are displayed.  No spaces
  68. are allowed but the underscore (_) is converted to a space.
  69.  
  70. Examples
  71. --------
  72.  
  73.  
  74. LOGTIME -L
  75.  
  76. Lists all past times logged.
  77.  
  78.  
  79. LOGTIME -f=C:\BOOTLOG /1=Computer_last_booted_on_ /2=.__Hello,_Commander.
  80.  
  81. Displays the last logged time and stores the current time in the
  82. file C:\BOOTLOG.  The display will be something like
  83.  
  84. Computer last booted on 01/01/94  13:22:01.  Hello, Commander.
  85.  
  86.  
  87. LOGTIME -f=C:\OUTLOG /d-
  88.  
  89. Logs the current time but does not display the last time stored in
  90. the file C:\OUTLOG.
  91.  
  92. This batch file flushes the SmartDrv buffer and records the time.
  93. This is ideal to run just before you turn off the computer.
  94.  
  95. ---------------------------------------------------
  96. @echo off
  97. echo.
  98. echo WAIT . . .
  99. echo A
  100. smartdrv /c
  101. LOGTIME -1=Last_logout_was_on_ -2=.__You_have_been_logged_out. -f=C:\TEMP\OUTLOG
  102. echo.
  103. ---------------------------------------------------
  104.  
  105. Why do I log 170 times?
  106.  
  107. Because most hard drives use a minimum of 2kb per file.  So a 1 byte
  108. file uses 2kb, and a 2kb file uses 2kb.  170 times come to just less
  109. than 2 kb.
  110.  
  111. You may modify the source code for your own use, but you may not
  112. distribute the modified code.  If you distribute this program, please
  113. distribute the .EXE file and the .PAS file with all the .DOC files
  114. together, all unmodified.  You may use this program freely, but a
  115. postcard would be appreciated.  See DETAILS.DOC for my address.
  116. If you really want to, you can send me a small donation.  If you
  117. like the program, I just want a postcard.  As this is free software
  118. I take no responsibilty for any losses or damages caused by it.
  119.  
  120. Please EMail me or write to me with comments, suggestions or bug
  121. reports.
  122.  
  123. To compile the source code, you will need the following source code
  124. units, also written by me (also postware):
  125.  
  126. PSSTR           Pascal Strings
  127. PSCMD           Pascal Command Line Control
  128.  
  129. They should be available at the same BBS or FTP site that you
  130. collected this file from.
  131.  
  132. Ciao
  133. Michael
  134.  
  135.